﻿using System.ComponentModel;

namespace Silverlight.Controls.ToolTips.Demo.Model
{
    public class AssemblyVersionInfo: INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private string fullName;
        private string version;

        public string FullName
        {
            get { return fullName; }
            set
            {
                fullName = value;
                RaisePropertyChanged("FullName");
            }           
        }

        public string Version
        {
            get { return version; }
            set
            {
                version = value;
                RaisePropertyChanged("Version");
            }
        }

        protected void RaisePropertyChanged(string name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(name));
        }
    }
}
